#!/usr/bin/python3
# -*- coding:utf-8 -*-
"""
@author: KevinQi
@file: create_table.py
@time: 2023/12/25 17:31
@desc: 双蛋快乐
"""
from backend.workjob.admin.models.factory import Factory
from backend.workjob.admin.models.log import OperationLog
from backend.workjob.admin.models.permission import User, Dept, Role, Menu, Post, ConfigSettings, DictData, \
    DictDataDetails
from backend.workjob.admin.models.jtask import Task
from backend.workjob.utils.db_utils import engine
from backend.workjob.utils.mysql_base import SqlAlBase


def run():
    Factory()
    OperationLog()
    User()
    Dept()
    Role()
    Menu()
    Post()
    ConfigSettings()
    DictData()
    DictDataDetails()
    Task()
    SqlAlBase().base.metadata.create_all(engine)
